package com.cloudkinto.service.orderback.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author zhangyy
 * @date 2020/8/5 15:27
 * @description:
 */
@Data
@ApiModel
public class OrderBackAddItem implements Serializable {
    @ApiModelProperty("商品id")
    @NotNull(message = "pls.chose.sku")
    private Long productId;

    @ApiModelProperty("数量")
    @NotNull(message = "pls.input.sku.count")
    private Integer count;

    public OrderBackAddItem() {
    }

    public OrderBackAddItem(Long productId, Integer count) {
        this.productId = productId;
        this.count = count;
    }
}
